﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace QuanLyBepAnTuThien
{
    public partial class frmInPhieuCamTa_VatChat : Form
    {
        public frmInPhieuCamTa_VatChat()
        {
            InitializeComponent();
        }
        connect cn = new connect();
        private void frmInPhieuCamTa_VatChat_Load(object sender, EventArgs e)
        {
            Report.rpInPhieuCamTa_DungCu frdc = new Report.rpInPhieuCamTa_DungCu();
            SqlCommand cmd = new SqlCommand("tblUngHo_DS",cn.ketnoi());
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.Parameters.Add(new SqlParameter("stt",SqlDbType.Int)).Value = bientinhSoVang.Sttsovang;
            SqlDataAdapter da = new SqlDataAdapter(cmd);
            DataTable dt = new DataTable();
            da.Fill(dt);
            frdc.SetDataSource(dt);
            frdc.SetParameterValue("so",bientinhSoVang.Sttsovang);
            frdc.SetParameterValue("hotenmtq", bientinhSoVang.Hotenmatq);
            frdc.SetParameterValue("diachi", bientinhSoVang.Diachi);
            frdc.SetParameterValue("nguoinhan", bientinhSoVang.Hotennv);
            rpInPhieuCamTa_View_VatChat.ReportSource=frdc;
        }
    }
}
